package cn.kgc.mybatis05.entity;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/10
 * @Description: 单例模式
 */
public class Person {

    private Person(){};

    private static Person person =null;

    public static Person  getInstance(){

        if(person==null){
            person = new Person();
        }
        return person;
    }

}
